package com.dbkj.login;

import com.dbkj.common.model.AxbLogin;

/**
 * @Author: Max
 * @Date: 2019/10/31 17:10
 */

public class LoginService {

    private static final AxbLogin dao = new AxbLogin().dao();


    public Boolean check(String username,String password){
        AxbLogin login = dao.findFirst("select * from axb_login where username =?",username);
        if(null == login){
            return false;
        }else{
            if(!password.equals(login.getPassword())){
                return false;
            } else {
                return true;
            }
        }
    }

}
